Optimal. Leaf size=75 \[ \frac{a^2 \left (a+b x^n\right )^{p+1}}{b^3 n (p+1)}-\frac{2 a \left (a+b x^n\right )^{p+2}}{b^3 n (p+2)}+\frac{\left (a+b x^n\right )^{p+3}}{b^3 n (p+3)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.112925, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118 \[ \frac{a^2 \left (a+b x^n\right )^{p+1}}{b^3 n (p+1)}-\frac{2 a \left (a+b x^n\right )^{p+2}}{b^3 n (p+2)}+\frac{\left (a+b x^n\right )^{p+3}}{b^3 n (p+3)} \]
Antiderivative was successfully verified.
[In] Int[x^(-1 + 3*n)*(a + b*x^n)^p,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 18.4928, size = 61, normalized size = 0.81 \[ \frac{a^{2} \left (a + b x^{n}\right )^{p + 1}}{b^{3} n \left (p + 1\right )} - \frac{2 a \left (a + b x^{n}\right )^{p + 2}}{b^{3} n \left (p + 2\right )} + \frac{\left (a + b x^{n}\right )^{p + 3}}{b^{3} n \left (p + 3\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**(-1+3*n)*(a+b*x**n)**p,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0716653, size = 66, normalized size = 0.88 \[ \frac{\left (a+b x^n\right )^{p+1} \left (2 a^2-2 a b (p+1) x^n+b^2 \left (p^2+3 p+2\right ) x^{2 n}\right )}{b^3 n (p+1) (p+2) (p+3)} \]
Antiderivative was successfully verified.
[In] Integrate[x^(-1 + 3*n)*(a + b*x^n)^p,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.097, size = 105, normalized size = 1.4 \[{\frac{ \left ({b}^{3}{p}^{2} \left ({x}^{n} \right ) ^{3}+a{b}^{2}{p}^{2} \left ({x}^{n} \right ) ^{2}+3\,{b}^{3}p \left ({x}^{n} \right ) ^{3}+ap \left ({x}^{n} \right ) ^{2}{b}^{2}+2\, \left ({x}^{n} \right ) ^{3}{b}^{3}-2\,{a}^{2}p{x}^{n}b+2\,{a}^{3} \right ) \left ( a+b{x}^{n} \right ) ^{p}}{ \left ( 2+p \right ) \left ( 3+p \right ) \left ( 1+p \right ) n{b}^{3}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^(-1+3*n)*(a+b*x^n)^p,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.39821, size = 107, normalized size = 1.43 \[ \frac{{\left ({\left (p^{2} + 3 \, p + 2\right )} b^{3} x^{3 \, n} +{\left (p^{2} + p\right )} a b^{2} x^{2 \, n} - 2 \, a^{2} b p x^{n} + 2 \, a^{3}\right )}{\left (b x^{n} + a\right )}^{p}}{{\left (p^{3} + 6 \, p^{2} + 11 \, p + 6\right )} b^{3} n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)^p*x^(3*n - 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.238641, size = 146, normalized size = 1.95 \[ -\frac{{\left (2 \, a^{2} b p x^{n} - 2 \, a^{3} -{\left (b^{3} p^{2} + 3 \, b^{3} p + 2 \, b^{3}\right )} x^{3 \, n} -{\left (a b^{2} p^{2} + a b^{2} p\right )} x^{2 \, n}\right )}{\left (b x^{n} + a\right )}^{p}}{b^{3} n p^{3} + 6 \, b^{3} n p^{2} + 11 \, b^{3} n p + 6 \, b^{3} n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)^p*x^(3*n - 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**(-1+3*n)*(a+b*x**n)**p,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (b x^{n} + a\right )}^{p} x^{3 \, n - 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)^p*x^(3*n - 1),x, algorithm="giac")
[Out]